<html>
<head>
<script language="
javascript" type="text/javascript">

function copy_clip(maintext)
{
 if (window.clipboardData)
   {
   // the IE-manier
   window.clipboardData.setData("Text", maintext);
   }
   else if (window.netscape)
   {
	netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
	if (!clip) return;
	var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
	if (!trans) return;
	trans.addDataFlavor('text/unicode');
	var str = new Object();
	var len = new Object();
	var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
	var copytext=maintext;
	str.data=copytext;
	trans.setTransferData("text/unicode",str,copytext.length*2);
	var clipid=Components.interfaces.nsIClipboard;
	if (!clip) return false;
	clip.setData(trans,null,clipid.kGlobalClipboard);
   }
alert("Following Email was copied to your clipboard:\n\n" + maintext);
   return false;
}
</script>      

<link rel="stylesheet" type="text/css" href="mohdstyle.css" />

<img id = "mypic" src="mdProfile.jpg" width="200" height="250" />  
<h1>Mohamed Diaa</h1>
</head> 

<body>

<div id="Contact_Me">
<a href="http://www.facebook.com/mohd.diaa/" target="_blank">
<img id = "a1" src="facebook.png" width="70" height="70" ;" alt="Facebook Profile" />
</a>
<br>
<a  href="https://twitter.com/#!/MohamedDiaa27" target="_blank">
<img id = "a2" src="twitter.png" width="70" height="70" ;" alt="Twitter Profile" />
</a>
<br>
<input id="a3"type="image" src="gmail.png" onclick='return copy_clip("mohd.guc@gmail.com")' width="70" height="70" ;" alt="Gmail"  />
</div>

<div id="div1">
<h2>About Me</h2>
<p>Iam a Computer Science and Engineering student (6th semester). I like working in teams, I love my family and friends; I am a big fan of rock music.I spend most of my free time building my own applications.</p>
</div>
<div id="div2">
<h2>COMPUTER ENVIRONMENT</h2>

<ul id="para">
  <li>Programming Languages: [Java, C, C#, C++, Haskell, Prolog, CHR, JavaScript, Visual Basic]</li>
  <li>Web Development: [ASP.NET, HTML, XHTML, CSS, Dreamweaver] </li>
  <li>DataBase: [SQL, MYSQL]</li>
  <li>Graphics software: [Adobe Photoshop, GIMP]</li>
</ul>

</div>

</body>
</html> 
